package me.leiusual.sharing.repository

import io.reactivex.Single
import me.leiusual.sharing.api.ApiSharing
import me.leiusual.sharing.api.model.userrenew.UserRenew
import javax.inject.Inject
import javax.inject.Singleton

/**
 * author: leiusual
 * create on: 2019-08-14
 * description:
 */
@Singleton
class UserRenewRepository @Inject constructor(
    private val apiSharing: ApiSharing
) {

  fun userRenewList(businessType: String?, userId: Long): Single<UserRenew> {
    return apiSharing.userRenewList(businessType, userId)
  }
}